<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib prefix="sys" uri="/WEB-INF/tld/sys.tld" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>项目风险审核记录</title>
    <style type="text/css">
    </style>
    <jsp:include page="../../import.jsp" flush="true"/>
    <style type="text/css">
        .searchArea .fieldBox .label{width: 70px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}

        .sq-button.sq-button-round.disabled{
            color: rgba(0,0,0,.30);
            background: #eaeaea;
            border: 1px solid #d8d8d8;
            cursor: not-allowed;
        }
    </style>
</head>

<body class="iframeBody">
<span id="tips" class="requiredSymbol">评审流程为各事业部通知政策约束的OA流程;详情可咨询事业部风险总监;</span>
<div id="ligergrid_prjRskAudWarn" class="sq-grid"></div>

<script type="text/javascript">
    var prjId = '${prjId}';
    var optTyp = '${optTyp}';
    var grid = null;
    $(function() {
        ctrlPrjRskAudWarnShow();
    });

    //展示项目风险审核提醒
    function ctrlPrjRskAudWarnShow() {
        var rskParams = {};
        rskParams.prjId = prjId;
        rskParams.optTyp = optTyp;
        $.ajax({
            type: 'get',
            dataType:'json',
            data:rskParams,
            url: '<%=path%>/project/prjRskAudWarnRec/searchPrjRskWarnRec.do',
            success:function(msg){
                inintPrjRskAudWarnGrid(msg.data);
            },
            error:function (msg) {
                inintPrjRskAudWarnGrid(null);
            }
        });

    }
    //初始化项目风险审核提醒列表
    function inintPrjRskAudWarnGrid(rskList) {
        $("#ligergrid_prjRskAudWarn").ligerGrid({
            data:rskList,
            dataAction:'local',
            columns: [
                { display: '名称', name: 'dataNm', minWidth: 140 , enabledSort:true},
                { display: '主体类型', name: 'dataTypCdNm', minWidth: 100 , enabledSort:true},
                { display: '风险审核提醒', name: 'rskDesc', minWidth: 500 , enabledSort:true}
            ],
            // pageSize:100,
            root:'rows',
            record:'total',
            hideLoadButton : true,
            width:'100%',
            height:'100%',
            heightDiff:-2,
            rownumbers:true,
            usePagerOnLessPagesize: false,
            usePager: false
        });
        grid = liger.get("ligergrid_prjRskAudWarn");
        grid.setHeight(100);
        grid.reload();
    }

</script>

</body>
</html>
